const nodata = require('../tw-lib-base/no-data/props')

module.exports = {
  // 整体
  height: {
    type: String,
    default: '300px',
    name: '图表容器高度',
    filedType: 'string'
  },

  data: {
    type: Array,
    default () {
      return [
        {
          "name": "天闻数媒",
          "value": 0.5566666
        }
      ]
    },
    name: '图表数据集',
    filedType: 'api'
  },
  bgColor: {
    type: String,
    default: '#fff',
    name: '背景颜色',
    filedType: 'color'
  },

  radius: {
    type: String,
    default: '70%',
    name: '半径大小',
    filedType: 'string'
  },

  fontSize: {
    type: String,
    default: '40',
    name: '字体大小',
    filedType: 'string'
  },
  boColor: {
    type: String,
    default: '#294D99',
    name: '波浪颜色',
    filedType: 'color'
  },
  boOpacity: {
    type: String,
    default: '0.6',
    name: '波浪透明度',
    filedType: 'string'
  },
  neiColor: {
    type: String,
    default: '#E3F7FF',
    name: '内部背景颜色',
    filedType: 'color'
  },
  neiOpacity: {
    type: String,
    default: '0.8',
    name: '内部背景透明度',
    filedType: 'string'
  },
  shape: {
    type: String,
    default: 'circle',
    name: '水球形状',
    filedType: 'select',
    options: [
      {
        name: 'circle',
        value: 'circle'
      },
      {
        name: 'rect',
        value: 'rect'
      },
      {
        name: 'triangle',
        value: 'triangle'
      },
      {
        name: 'diamond',
        value: 'diamond'
      },
      {
        name: 'pin',
        value: 'pin'
      },
      {
        name: 'arrow',
        value: 'arrow'
      }
    ]
  },
  showBorder: {
    type: Boolean,
    default: true,
    name: '显示边框',
    filedType: 'switch'
  },
  borderColor: {
    type: String,
    default: '#294D99',
    name: '边框颜色',
    filedType: 'color'
  },

  ...nodata
}
